<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>益齿口腔在线预约系统</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }

        html, body {
            height: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        body {
            background-color: #f5f5f5;
            display: flex;
            flex-direction: column;
        }

        /* 头部样式 */
        .header {
            background-color: #1e88e5;
            color: white;
            padding: 15px 0;
            text-align: center;
            width: 100%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            font-size: 1.5rem;
            font-weight: normal;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding-bottom: 20px;
        }

        /* 提示区域样式 */
        .notice {
            color: #f44336;
            padding: 10px 15px;
            text-align: center;
            font-size: 1rem;
            background-color: #ffebee;
            margin: 10px auto;
            border-radius: 4px;
            max-width: 90%;
        }

        /* 查询区域样式 */
        .search-container {
            display: flex;
            padding: 15px;
            max-width: 600px;
            margin: 20px auto;
            width: 90%;
        }

        .search-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
            font-size: 1rem;
            outline: none;
        }

        .search-button {
            padding: 10px 20px;
            background-color: #1e88e5;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s;
        }

        .search-button:hover {
            background-color: #1565c0;
        }

        /* 号码显示区域 */
        .number-display {
            background-color: white;
            padding: 20px;
            margin: 15px auto;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            width: 90%;
        }

        .number-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .number-item:not(:last-child) {
            border-bottom: 1px solid #eee;
        }

        .number-label {
            font-size: 1rem;
            color: #666;
        }

        .number-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #1e88e5;
        }

        .your-number {
            color: #f44336;
        }

        /* 时间显示区域 */
        .time-display {
            background-color: white;
            padding: 15px;
            margin: 15px auto;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            width: 90%;
            text-align: center;
        }

        .current-time {
            font-size: 1.2rem;
            color: #333;
        }

        .current-week {
            font-size: 1rem;
            color: #666;
            margin-top: 5px;
        }

        /* 版权信息 */
        .footer {
            text-align: center;
            padding: 15px;
            color: #999;
            font-size: 0.9rem;
            //background-color: white;
            //box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
        }

        /* 响应式设计 */
        @media (min-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }

            .notice {
                font-size: 1.2rem;
                max-width: 80%;
            }

            .search-container {
                padding: 20px;
            }

            .number-label {
                font-size: 1.1rem;
            }

            .number-value {
                font-size: 2.2rem;
            }

            .current-time {
                font-size: 1.5rem;
            }

            .current-week {
                font-size: 1.2rem;
            }
        }

        @media (min-width: 1024px) {
            .header h1 {
                font-size: 2.5rem;
            }

            .notice {
                max-width: 70%;
            }

            .number-display {
                padding: 25px 30px;
            }

            .number-label {
                font-size: 1.2rem;
            }

            .number-value {
                font-size: 2.5rem;
            }

            .time-display {
                padding: 20px;
            }

            .current-time {
                font-size: 1.8rem;
            }

            .current-week {
                font-size: 1.4rem;
            }
        }
    </style>
</head>
<body>
<div id="app">
    <!-- 头部区域 -->
    <header class="header">
        <h1>益齿口腔在线预约系统</h1>
    </header>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 提示区域 -->
        <div class="notice">
            本系统仅限预约当天诊疗号
        </div>

        <!-- 查询区域 -->
        <div class="search-container">
            <input type="text" class="search-input" placeholder="请输入您的手机号或预约号">
            <button class="search-button">查询</button>
        </div>

        <!-- 号码显示区域 -->
        <div class="number-display">
            <div class="number-item">
                <span class="number-label">当前正在进行的号码：</span>
                <span class="number-value">{{ currentNumber }}</span>
            </div>
            <div class="number-item">
                <span class="number-label">您的预约号码：</span>
                <span class="number-value your-number">{{ yourNumber }}</span>
            </div>
        </div>

        <!-- 时间显示区域 -->
        <div class="time-display">
            <div class="current-time">{{ currentTime }}</div>
            <div class="current-week">{{ currentWeek }}</div>
        </div>
    </div>

    <!-- 版权信息 -->
    <footer class="footer">
        © 2023 益齿口腔医院 版权所有
    </footer>
</div>

<script>
    new Vue({
        el: '#app',
        data: {
            currentNumber: 'A102',
            yourNumber: 'A115',
            currentTime: '',
            currentWeek: ''
        },
        created() {
            this.updateTime();
            setInterval(this.updateTime, 1000);
        },
        methods: {
            updateTime() {
                const now = new Date();
                const year = now.getFullYear();
                const month = (now.getMonth() + 1).toString().padStart(2, '0');
                const day = now.getDate().toString().padStart(2, '0');
                const hours = now.getHours().toString().padStart(2, '0');
                const minutes = now.getMinutes().toString().padStart(2, '0');
                const seconds = now.getSeconds().toString().padStart(2, '0');

                this.currentTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;

                const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
                this.currentWeek = weekDays[now.getDay()];
            }
        }
    });
</script>
</body>
</html>